package cn.itsource.service;

import cn.itsource.bean.Product;
import cn.itsource.dto.ProductDto;
import cn.itsource.query.ProductQuery;
import cn.itsource.util.JsonResult;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @author : 张金铭
 * @description :
 * @create :2022-11-29 09:43:00
 */
public interface IProductService extends IService<Product> {
    JsonResult getPage(ProductQuery query);

    JsonResult upState(ProductQuery query, Long state);

    JsonResult getPetById(Long id);

    JsonResult add(Product product);

    JsonResult deleteByIds(ProductQuery query);

    String submitOrder(ProductDto productDto);
}
